package com.shortlink.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.shortlink.pojos.entity.LinkDO;
import org.apache.ibatis.annotations.Param;

public interface LinkMapper extends BaseMapper<LinkDO> {


    /**
     * 短链接访问统计自增
     */
    void incrementStats(@Param("shortUri") String shortUri,
                        @Param("totalPv") Integer totalPv,
                        @Param("totalUv") Integer totalUv,
                        @Param("totalUip") Integer totalUip);
}
